<template>
  <div id="user_layout">
    <a-layout style="min-height: 100vh">
      <a-layout-header class="header">
        <span class="back-click" @click="router.back()">
          <img src="../assets/oj-logo.svg" class="logo" />
          <spa>m OJ</spa>
        </span>
      </a-layout-header>
      <a-layout-content class="content">
        <router-view />
      </a-layout-content>
      <a-layout-footer class="footer">
        <a href="https://www.baidu.com" target="_blank">编程导航</a>
      </a-layout-footer>
    </a-layout>
  </div>
</template>
<style scoped>
#user_layout {
  background: url("../assets/background.png");
}

#user_layout .header {
  //padding: 10px 0;
  box-shadow: #eee 1px 1px 5px;
  font-size: 18px;
}

#user_layout .header .back-click {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  overflow: hidden;
}

#user_layout .header .logo {
  width: 64px;
  height: 64px;
}

#user_layout .content {
  padding: 20px;
  margin: 0px auto;
}

#user_layout .footer {
  padding: 16px;
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
}
</style>
<script setup lang="ts">
import { useRouter } from "vue-router";

const router = useRouter();
</script>
